
#include <iostream>

struct Base1 {
};


void demo(int a[], int b) {

}

int main() {
    std::cout << (1 < 30 < 5) << std::endl;

    int a = 10, b = 10;
    float beta = 5.2e1;
    std::cout << beta << std::endl;
    std::cout << (a = static_cast<int>(beta));
    std::cout << a;
    std::cout << (static_cast<float>(b)) << std::endl;
    // 任何不同的对象不能拥有相同的内存地址。如果空类对象大小为0，那么此类数组中的各个对象的地址将会一致
    std::cout << sizeof Base1() << std::endl;

    char c = 'a';
    int d = 1234;
    std::cout << "char: " << sizeof c << std::endl;
    std::cout << "int: " << sizeof d << std::endl;

    std::cout << (0 >> 1) << std::endl;
    std::cout << (-1 >> 1) << std::endl;
    std::cout << (5 >> 1) << std::endl;
    int m[3];
    int n = 0;
    demo(m, n);
}